<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,cn.edu.lingnan.dto.*" %>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>修改导游信息页面</title>
</head>
<body>
	<h1>导游信息展示如下</h1>
<form action="UpdateGuide">
<table border="1" cellspacing="0" align="center">
	<tr>
		<td></td>
		<td>导游编号</td>
		<td>导游姓名</td>
		<td>性别</td>
		<td>密码</td>
		<td>管理员权限</td>
		<td></td>
	</tr>	
	<%
	Vector<GuideDTO> v=(Vector<GuideDTO>) session.getAttribute("AllGuideInfo");//FindAllGuideServlet里set好了
	String gno=request.getParameter("gno");//括号里的gno是在findallguide.jsp读的参数
	Iterator<GuideDTO> it=v.iterator();	
	GuideDTO guide=null;
	while(it.hasNext()){
		guide=it.next();
		if(guide.getG_no().equals(gno)){
	%>
		<tr>
		<td></td>
		<td><input type="hidden" name="gno" value=<%=guide.getG_no()%>><%=guide.getG_no()%></td>
		<td><input type="text" name="name" value=<%=guide.getG_name()%>></td>
		<td><input type="text" name="sex" value=<%=guide.getG_sex()%>></td>
		<td><input type="text" name="password" value=<%=guide.getPassword()%>></td>
		<td><input type="text" name="administer" value=<%=guide.getAdminister()%>></td>
		<td>
		<input type="submit" value="确认修改">		 
		</tr>	
	<% 
		}
	}	
	%>
</table>
</form>
</body>
</html>